package com.demo.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class RestControllerTest {

	@RequestMapping("/hi")
	public String home(@RequestParam(value = "name") String name) {
		String s = "this is Rose second , 请求参数为:" + name;
		System.err.println(s);
		return s;
	}
}
